
const setHistory = (arr:string[])=>{
  localStorage.setItem("historyList",JSON.stringify(arr));
}

const clearHistory = () =>{
  localStorage.setItem('historyList',JSON.stringify([]))
}

const history = {
  setHistory,
  clearHistory
}

export default history